-- GENERATED SPELL FOR [Eclipsion Centurion] --


function spell0_19792(pUnit, Event) --@Blood Heal,Self--
pUnit:FullCastSpellOnTarget(36476,pUnit)
pUnit:RegisterEvent('Sorts_19792', 3000, 1)
end

function spell1_19792(pUnit, Event) --@Spellbreaker,n/a--
pUnit:FullCastSpellOnTarget(35871,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19792', 523, 1)
end

function Sorts_19792(pUnit, Event)
local choix_sorts_19792 = math.random(0, 1)
if choix_sorts_19792 == 0 then
pUnit:RegisterEvent('spell0_19792', 1, 1)
end
if choix_sorts_19792 == 1 then
pUnit:RegisterEvent('spell1_19792', 1, 1)
end
end

function mob19792_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19792', math.random(1500, 3000), 1)
end

function mob19792_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19792_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19792_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19792, 1, 'mob19792_Action')
RegisterUnitEvent(19792, 2, 'mob19792_Leave')
RegisterUnitEvent(19792, 3, 'mob19792_Kill')
RegisterUnitEvent(19792, 4, 'mob19792_Die')
